package com.hc.demo.controller;

import com.hc.demo.domain.Setmeal;
import com.hc.demo.dto.ResultResponse;
import com.hc.demo.service.SetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SetmealController {
    @Autowired
    SetmealService setmealService;

    @RequestMapping("/listSetmeal")
    public ResultResponse listSetmeal(@RequestBody Setmeal setmeal){
        return setmealService.listSetmeal(setmeal.getType());
    }
}
